x86/compat: Cleanup and further debugging of SMAP/SMEP fixup
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 16 May 2016 10:48:52 +0000 (11:48 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 16 May 2016 12:11:05 +0000 (13:11 +0100)
commitad4aa3619f436e3ed79eea8498ac18aa8d5e6b83
treec95151503ebc3157dd6a2d31af9c8c8a776814b8
parentfcab4cec98ae1f56312744c19f608856261b20cf
x86/compat: Cleanup and further debugging of SMAP/SMEP fixup

 * Abstract (X86_CR4_SMEP | X86_CR4_SMAP) behind XEN_CR4_PV32_BITS to avoid
   opencoding the invidial bits which are fixed up behind a 32bit PV guests
   back.
 * In the debug case, perform the the AND and CMP on 64bit values rather than
   32bit values, to match the logic in then non-debug case.
 * Show cr4_pv32_mask in the BUG register dump

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/setup.c
xen/arch/x86/x86_64/compat/entry.S
xen/include/asm-x86/processor.h